from peewee import *

database = MySQLDatabase('seat_raw', **{'charset': 'utf8', 'sql_mode': 'PIPES_AS_CONCAT', 'use_unicode': True, 'host': '192.168.10.193', 'port': 3306, 'user': 'a', 'password': '110'})

class UnknownField(object):
    def __init__(self, *_, **__): pass

class BaseModel(Model):
    class Meta:
        database = database

class Vb(BaseModel):
    aa = TextField(column_name='AA', null=True)
    ab = TextField(column_name='AB', null=True)
    ac = TextField(column_name='AC', null=True)
    ad = TextField(column_name='AD', null=True)
    ae = TextField(column_name='AE', null=True)
    af = TextField(column_name='AF', null=True)
    ag = TextField(column_name='AG', null=True)
    ah = TextField(column_name='AH', null=True)
    ai = TextField(column_name='AI', null=True)
    ea = TextField(column_name='EA', null=True)
    eb = TextField(column_name='EB', null=True)
    ec = TextField(column_name='EC', null=True)
    autoid = AutoField()
    brand = CharField(index=True, null=True)
    cid = CharField(index=True, null=True)
    pdir = CharField(null=True)

    class Meta:
        table_name = 'vb'

